package com.example.xd.libs

import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.View
import android.view.View.OnClickListener
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.example.xd.apt_annotation.BindView
import com.example.xd.apt_binder.AptBinder
import com.example.xd.apt_binder.UnBinder
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        var loader = MainActivity::class.java.classLoader
        while (loader != null) {
            Log.d("xd----", loader.toString())
            loader = loader.parent
        }
        btn_bind.setOnClickListener(object : OnClickListener {
            override fun onClick(v: View?) {
                startActivity(Intent(this@MainActivity, BindTestActivity::class.java))
            }
        })
    }
}